package com.study.springcloud.mapper;

import com.study.springcloud.pojo.Goods;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author Chen Jie
 * @Date 2022/3/5 13:52
 * @Version 1.0
 */
@Mapper
public interface GoodsMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Goods record);

    int insertSelective(Goods record);

    Goods selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(Goods record);

    int updateByPrimaryKey(Goods record);

    List<Goods> selectAllGoods();

    int updateByStore(@Param("goodsId") Integer goodsId, @Param("buyNum") Integer buyNum);
}
